package org.tang.schoolproject.service;

import cn.dev33.satoken.util.SaResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import org.tang.schoolproject.entitys.Book;

import java.util.List;

public interface BookService extends IService<Book> {
    SaResult saveBook(MultipartFile[] files, Book book);
    SaResult getBookById(Long id);

    SaResult saveBookContent(MultipartFile file, Long bookId);

    SaResult updateBook(MultipartFile[] files, Book book);

    SaResult updateBookContent(MultipartFile file, Long bookId);

    SaResult deleteBook(Long id);

    SaResult fileByBookId(Long bookId);

    List<String> getImagesNames();
}
